import httpClient from "@/api/index";

export const GetRoleList = async (params: any) => {
    return await httpClient.post("/role/GetRoleList", params);
}

export const addRole = async (params: any) => {
    return await httpClient.post("/role/AddRole", params);
}

export const updateRole = async (params: any) => {
    return await httpClient.post("/role/UpdateRole", params);
}

export const DeleteRole = async (params: any) => {
    return await httpClient.post("/role/DeleteRole", params);
}

export const GetFlatMenusByRoleId = async (Id: any) => {
    return await httpClient.get("/role/getFlatMenusByRoleId?Id=" + Id );
}

export const UpdateRoleMenus = async (params: any) => {
    return await httpClient.post("/role/UpdateRoleMenus", params);
}